package com.wangbo.decorator;

/**
 * 飞行装饰器
 */
public class FlyCarDecorator extends CarDecorator{
    public FlyCarDecorator(Car decoratedCar) {
        super(decoratedCar);
    }

    @Override
    public void run() {
        fly();
        decoratedCar.run();
    }

    private void fly() {
        System.out.println("Enable fly mode.");
    }
}
